package com.example.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.auth.domain.DataNodeConfig;
import com.example.auth.service.DataNodeConfigService;
import com.example.auth.mapper.DataNodeConfigMapper;
import org.springframework.stereotype.Service;

/**
* @author CETC
* @description 针对表【data_node_config】的数据库操作Service实现
* @createDate 2025-10-03 10:19:15
*/
@Service
public class DataNodeConfigServiceImpl extends ServiceImpl<DataNodeConfigMapper, DataNodeConfig>
    implements DataNodeConfigService{

    @Override
    public IPage<DataNodeConfig> page(Integer pageNum, Integer pageSize, String nodeName) {
        LambdaQueryWrapper<DataNodeConfig> lqw = new LambdaQueryWrapper<>();
        lqw.like(DataNodeConfig::getNodeName, nodeName);
        IPage<DataNodeConfig> dataNodeConfigIPage=this.page(new Page(pageNum, pageSize), lqw);
        return dataNodeConfigIPage;
    }

}




